Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

US157225 - Handle when styles are placed on the host that we want included in the rect #161

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

svanherk
Copy link
Contributor

@svanherk svanherk commented Sep 5, 2023

I thought I could get away without this (basically either you use vdiff-target for everything you need in your shadow DOM, or for nothing and the whole element will be used). But then I immediately ran into a problem with d2l-count-badge-icon, which adds a bunch of padding to the host. So we now always consider the custom element size in the rect calculation.

@svanherk svanherk requested a review from a team as a code owner September 5, 2023 18:38
Copy link
Member

@dlockhart dlockhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah well, it was good while it lasted!

@svanherk
Copy link
Contributor Author

svanherk commented Sep 5, 2023

In #159, I said:

... as you can see, count-badge is still getting cut off because it's not incorporating the tooltip size. If we set vdiff-target on the div here AND on the d2l-tooltip here...

Basically with this change, we no longer need to set it on the div.

@svanherk svanherk merged commit 96fea68 into main Sep 5, 2023
2 checks passed
@svanherk svanherk deleted the US157225_Handle_styles_on_host branch September 5, 2023 18:49
@ghost
Copy link

ghost commented Sep 5, 2023

🎉 This PR is included in version 0.32.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants